package cn.shenshen.shop.domain;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by wolfcode-hesj
 */
@Setter
@Getter
public class OrderInfo implements Serializable {
    public static final Integer STATUS_ARREARAGE = 0;//未付款
    public static final Integer STATUS_ACCOUNT_PAID = 1;//已付款
    public static final Integer STATUS_CANCEL = 2;//手动取消订单
    public static final Integer STATUS_TIMEOUT = 3;//超时取消订单
    private String orderNo;//订单编号
    private Long userId;//用户id
    private Long goodId;//商品id
    private Long deliveryAddrId;//收货地址
    private String goodName;//商品名称
    private String goodImg;//图片
    private Integer goodCount;//数量
    private BigDecimal goodPrice;//商品价格
    private BigDecimal seckillPrice;//秒杀价格
    private Integer status = STATUS_ARREARAGE;//状态,默认为未付款
    private Date createDate;//创建时间
    private Date payDate;//支付时间
}
